<div ng-controller="ResitemCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="">{{'预约'| translate}}</a></li>
        <li class="active">
            预约项目
            <a href="#/resitem/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
            <!-- <a href="#/reitem/batch" id="addNew" class="sui-btn btn-primary">{{'批量定制项目周期' | translate}}</a> -->
        </li>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'类型名称'|translate}}</th>
                <th>{{'所属于类型'|translate}}</th>
                <th>{{'周期模板'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="(ke,list) in res_item">
                <td>{{ke+1}}</td>
                <td>{{list.name}}</td>
                <td>
                    <res-template-list ng-model="list.res_type_id" stype="1" apitype="restypeGet"></res-template-list>
                </td>
                <td>
                    <res-template-list ng-model="list.template_id" stype="1" ></res-template-list>
                </td>
                <td>
                    <a href="#/resitem/add?res_item_id={{list.res_item_id}}" class="sui-btn btn-primary">{{'编辑'|translate}}</a>
                    <!-- <edit-periods schemaid="list.res_item_id" title="预约数据"></edit-periods> -->
                    <privates-data schemaid="list.res_item_id" name="{{list.name}}"></privates-data>
                    <button class="sui-btn btn-warning" ng-click="public(list.res_item_id)">{{'发布'|translate}}</button>
                    <button class="sui-btn btn-danger" ng-click="del(list.res_item_id)">{{'删除'|translate}}</button>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getlist(pageNo)"></pager>
    
</div>